package com.tz.entity;

/**
 *
 */

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "SHOP_PICTURE")
public class Picture extends BaseEntity {

    private String path;

    private boolean cover;

    public Picture() {
        super();
    }

    public Picture(String path, boolean cover) {
        super();
        this.path = path;
        this.cover = cover;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isCover() {
        return cover;
    }

    public void setCover(boolean cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return "Picture{" +
                "path='" + path + '\'' +
                ", cover=" + cover +
                "} " + super.toString();
    }
}